const rectangle = {
    name: "矩形 1",
    width: 10,
    height: 20,
    area: function () {
    return this.width * this.height;
    },
    };


    console.log(rectangle.name);
    console.log(rectangle.area());
    rectangle.width = 15;
    console.log(rectangle.area()); 

    console.log(this); // 输出：Window 对象
    function run() {
    console.log(this); // 输出：Window 对象
    }
    run();

const rectangle1 = {
    name: "矩形 1",
    width: 10,
    height: 20,
    area: function () {
    return this.width * this.height;
    },
    };
    const rectangle2 = {
    name: "矩形 2",
    width: 30,
    height: 40,
    area: function () {
    return this.width * this.height;
    },
    };
    console.log(rectangle1.area()); // 输出：200
    console.log(rectangle2.area());

    